package com.lc.pda.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
@EnableSwagger2
// dev环境启用swagger
@Profile("dev")
public class SwaggerAutoConfiguration {

    /**
     * @author zww
     * @description 配置token，以及设置扫描包的路径
     * @return Docket
     */
    @Bean("pdaWebApiConfig")
    public Docket webApiConfig(){
        return SwaggerConfig.webApiConfig("com.lc.pda.controller", "设备管理");
    }
}
